/*
 * Ruler.java
 *
 * Created on September 7, 2008, 1:25 PM
 */

package openrule;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Point;
import javax.swing.JComponent;

/**
 *
 * @author  leadiv
 */
public class RulerVert extends BaseRuler {

    /** Creates new form Ruler */
    public RulerVert() {
        super();
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        popContextMenu = new javax.swing.JPopupMenu();
        mtmAbout = new javax.swing.JMenuItem();
        mtmHelp = new javax.swing.JMenuItem();
        mtmSeparator = new javax.swing.JSeparator();
        mtmFlip = new javax.swing.JMenuItem();
        mtmSnap = new javax.swing.JMenuItem();
        mtmColor = new javax.swing.JMenuItem();
        mtmSeparator2 = new javax.swing.JSeparator();
        mtmMinimize = new javax.swing.JMenuItem();
        mtmQuit = new javax.swing.JMenuItem();
        pnlRulerContainer = new javax.swing.JPanel();
        pnlInfoBar = new javax.swing.JPanel();
        pnlFormControls = new javax.swing.JPanel();
        pnlButtons = new javax.swing.JPanel();
        btnClose = new javax.swing.JButton();
        pnlPadding = new javax.swing.JPanel();
        btnMin = new javax.swing.JButton();
        btnFlip = new javax.swing.JButton();
        pnlCenterContainer = new javax.swing.JPanel();
        pnlInnerContainer = new javax.swing.JPanel();
        pnlTitle = new javax.swing.JPanel();
        lblTitle = new javax.swing.JLabel();
        pnlDistance = new javax.swing.JPanel();
        lblDistance = new javax.swing.JLabel();
        pnlResize = new javax.swing.JPanel();
        lblHandle = new javax.swing.JLabel();
        pnlTickBar = new javax.swing.JPanel();
        tickbar = new openrule.VerticalTickBar();
        mbHotKeys = new javax.swing.JMenuBar();
        mnuHotKeys = new javax.swing.JMenu();
        mtmHKAbout = new javax.swing.JMenuItem();
        mtmHKFlip = new javax.swing.JMenuItem();
        mtmHKSnap = new javax.swing.JMenuItem();
        mtmHKColor = new javax.swing.JMenuItem();
        mtmHKMinimize = new javax.swing.JMenuItem();
        mtmHKHelp = new javax.swing.JMenuItem();
        mtmHKQuit = new javax.swing.JMenuItem();
        mtmHKUp = new javax.swing.JMenuItem();
        mtmHKDown = new javax.swing.JMenuItem();
        mtmHKLeft = new javax.swing.JMenuItem();
        mtmHKRight = new javax.swing.JMenuItem();

        mtmAbout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, 0));
        mtmAbout.setText("About...");
        popContextMenu.add(mtmAbout);
        mtmAbout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                about();
            }
        });

        mtmHelp.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));
        mtmHelp.setText("Help");
        popContextMenu.add(mtmHelp);
        mtmHelp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gotohelp();
            }
        });
        popContextMenu.add(mtmSeparator);

        mtmFlip.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, 0));
        mtmFlip.setText("Flip");
        popContextMenu.add(mtmFlip);
        mtmFlip.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                flipRuler();
            }
        });

        mtmSnap.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, 0));
        mtmSnap.setText("Snap to Zero");
        popContextMenu.add(mtmSnap);
        mtmSnap.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                snap();
            }
        });

        mtmColor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, 0));
        mtmColor.setText("Color...");
        popContextMenu.add(mtmColor);
        mtmColor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                colorRuler();
            }
        });
        popContextMenu.add(mtmSeparator2);

        mtmMinimize.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, 0));
        mtmMinimize.setText("Minimize");
        popContextMenu.add(mtmMinimize);
        mtmMinimize.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                minimizeRuler();
            }
        });

        mtmQuit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q, 0));
        mtmQuit.setText("Quit");
        popContextMenu.add(mtmQuit);
        mtmQuit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                closeRuler();
            }
        });

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Open Rule");
        setAlwaysOnTop(true);
        setBounds(new java.awt.Rectangle(0, 0, 460, 60));
        setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
        setMinimumSize(new java.awt.Dimension(70, 255));
        setUndecorated(true);
        getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.X_AXIS));

        pnlRulerContainer.setBackground(new java.awt.Color(252, 233, 79));
        pnlRulerContainer.setComponentPopupMenu(popContextMenu);
        pnlRulerContainer.setPreferredSize(new java.awt.Dimension(70, 360));
        pnlRulerContainer.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                pnlRulerContainerMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pnlRulerContainerMouseReleased(evt);
            }
        });
        pnlRulerContainer.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseDragged(java.awt.event.MouseEvent evt) {
                pnlRulerContainerMouseDragged(evt);
            }
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                pnlRulerContainerMouseMoved(evt);
            }
        });
        pnlRulerContainer.setLayout(new javax.swing.BoxLayout(pnlRulerContainer, javax.swing.BoxLayout.X_AXIS));

        pnlInfoBar.setOpaque(false);
        pnlInfoBar.setPreferredSize(new java.awt.Dimension(30, 360));
        pnlInfoBar.setLayout(new java.awt.BorderLayout());

        pnlFormControls.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        pnlFormControls.setOpaque(false);
        pnlFormControls.setLayout(new javax.swing.BoxLayout(pnlFormControls, javax.swing.BoxLayout.Y_AXIS));

        pnlButtons.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 3, 1, 1));
        pnlButtons.setOpaque(false);
        pnlButtons.setLayout(new javax.swing.BoxLayout(pnlButtons, javax.swing.BoxLayout.Y_AXIS));
        pnlButtons.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                defaultCursor();
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                moveCursor();
            }
        });

        btnClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Graphics/close.png"))); // NOI18N
        btnClose.setBorder(null);
        btnClose.setBorderPainted(false);
        btnClose.setContentAreaFilled(false);
        btnClose.setMaximumSize(new java.awt.Dimension(16, 16));
        btnClose.setMinimumSize(new java.awt.Dimension(16, 16));
        btnClose.setPreferredSize(new java.awt.Dimension(16, 16));
        btnClose.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Graphics/close.hover.png"))); // NOI18N
        btnClose.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                closeRuler();
            }
        });

        btnClose.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                defaultCursor();
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                moveCursor();
            }
        });
        pnlButtons.add(btnClose);

        pnlPadding.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 0, 2, 1));
        pnlPadding.setAlignmentY(0.0F);
        pnlPadding.setOpaque(false);
        pnlPadding.setLayout(new javax.swing.BoxLayout(pnlPadding, javax.swing.BoxLayout.Y_AXIS));

        btnMin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Graphics/minimize.png"))); // NOI18N
        btnMin.setBorder(null);
        btnMin.setMaximumSize(new java.awt.Dimension(16, 16));
        btnMin.setMinimumSize(new java.awt.Dimension(16, 16));
        btnMin.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Graphics/minimize.hover.png"))); // NOI18N
        btnMin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                minimizeRuler();
            }
        });

        btnMin.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                defaultCursor();
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                moveCursor();
            }
        });
        pnlPadding.add(btnMin);

        pnlButtons.add(pnlPadding);

        btnFlip.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Graphics/swap.horz.png"))); // NOI18N
        btnFlip.setBorder(null);
        btnFlip.setMaximumSize(new java.awt.Dimension(16, 16));
        btnFlip.setMinimumSize(new java.awt.Dimension(16, 16));
        btnFlip.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Graphics/swap.horz.hover.png"))); // NOI18N
        btnFlip.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                flipRuler();
            }
        });

        btnFlip.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                defaultCursor();
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                moveCursor();
            }
        });
        pnlButtons.add(btnFlip);

        pnlFormControls.add(pnlButtons);

        pnlInfoBar.add(pnlFormControls, java.awt.BorderLayout.PAGE_START);

        pnlCenterContainer.setOpaque(false);
        pnlCenterContainer.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 0, 5));

        pnlInnerContainer.setOpaque(false);
        pnlInnerContainer.setLayout(new java.awt.BorderLayout());

        pnlTitle.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 6, 1, 1));
        pnlTitle.setOpaque(false);
        pnlTitle.setLayout(new javax.swing.BoxLayout(pnlTitle, javax.swing.BoxLayout.LINE_AXIS));

        lblTitle.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Graphics/openrule.title.vert.png"))); // NOI18N
        pnlTitle.add(lblTitle);

        pnlInnerContainer.add(pnlTitle, java.awt.BorderLayout.PAGE_START);

        pnlDistance.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        pnlDistance.setOpaque(false);
        pnlDistance.setPreferredSize(new java.awt.Dimension(30, 100));

        lblDistance.setText("");
        pnlDistance.add(lblDistance);

        pnlInnerContainer.add(pnlDistance, java.awt.BorderLayout.PAGE_END);

        pnlCenterContainer.add(pnlInnerContainer);

        pnlInfoBar.add(pnlCenterContainer, java.awt.BorderLayout.CENTER);

        pnlResize.setOpaque(false);
        pnlResize.setPreferredSize(new java.awt.Dimension(12, 12));
        pnlResize.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                pnlResizeMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pnlResizeMouseReleased(evt);
            }
        });
        pnlResize.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseDragged(java.awt.event.MouseEvent evt) {
                pnlResizeMouseDragged(evt);
            }
        });
        pnlResize.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                resizeHeightCursor();
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                defaultCursor();
            }
        });
        pnlResize.setLayout(new javax.swing.BoxLayout(pnlResize, javax.swing.BoxLayout.Y_AXIS));

        lblHandle.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Graphics/resize.vert.png"))); // NOI18N
        pnlResize.add(lblHandle);

        pnlInfoBar.add(pnlResize, java.awt.BorderLayout.PAGE_END);

        pnlRulerContainer.add(pnlInfoBar);

        pnlTickBar.setOpaque(false);
        pnlTickBar.setPreferredSize(new java.awt.Dimension(40, 360));
        pnlTickBar.setLayout(new javax.swing.BoxLayout(pnlTickBar, javax.swing.BoxLayout.PAGE_AXIS));

        tickbar.setOpaque(false);
        pnlTickBar.add(tickbar);

        pnlRulerContainer.add(pnlTickBar);

        getContentPane().add(pnlRulerContainer);

        mbHotKeys.setPreferredSize(new java.awt.Dimension(29, 0));
        mbHotKeys.setRequestFocusEnabled(false);

        mnuHotKeys.setText("File");

        mtmHKAbout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, 0));
        mtmHKAbout.setText("Item");
        mnuHotKeys.add(mtmHKAbout);
        mtmHKAbout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                about();
            }
        });

        mtmHKFlip.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, 0));
        mtmHKFlip.setText("Item");
        mnuHotKeys.add(mtmHKFlip);
        mtmHKFlip.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                flipRuler();
            }
        });

        mtmHKSnap.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, 0));
        mtmHKSnap.setText("Item");
        mnuHotKeys.add(mtmHKSnap);
        mtmHKSnap.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                snap();
            }
        });

        mtmHKColor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, 0));
        mtmHKColor.setText("Item");
        mnuHotKeys.add(mtmHKColor);
        mtmHKColor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                colorRuler();
            }
        });

        mtmHKMinimize.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, 0));
        mtmHKMinimize.setText("Item");
        mnuHotKeys.add(mtmHKMinimize);
        mtmHKMinimize.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                minimizeRuler();
            }
        });

        mtmHKHelp.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));
        mtmHKHelp.setText("Item");
        mnuHotKeys.add(mtmHKHelp);
        mtmHKHelp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gotohelp();
            }
        });

        mtmHKQuit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q, 0));
        mtmHKQuit.setText("Item");
        mnuHotKeys.add(mtmHKQuit);
        mtmHKQuit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                closeRuler();
            }
        });

        mtmHKUp.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_UP, 0));
        mtmHKUp.setText("up");
        mnuHotKeys.add(mtmHKUp);
        mtmHKUp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                moveRuler(evt);
            }
        });

        mtmHKDown.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_DOWN, 0));
        mtmHKDown.setText("down");
        mnuHotKeys.add(mtmHKDown);
        mtmHKDown.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                moveRuler(evt);
            }
        });

        mtmHKLeft.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_LEFT, 0));
        mtmHKLeft.setText("left");
        mnuHotKeys.add(mtmHKLeft);
        mtmHKLeft.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                moveRuler(evt);
            }
        });

        mtmHKRight.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_RIGHT, 0));
        mtmHKRight.setText("right");
        mnuHotKeys.add(mtmHKRight);
        mtmHKRight.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                moveRuler(evt);
            }
        });

        mbHotKeys.add(mnuHotKeys);

        setJMenuBar(mbHotKeys);

        pack();
    }// </editor-fold>//GEN-END:initComponents

        public Color getRulerColor()
    {
        return this.pnlRulerContainer.getBackground();
    }
    
    public void setRulerColor(Color c)
    {
        this.pnlRulerContainer.setBackground(c);
    }
    
private void pnlResizeMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlResizeMouseDragged
    if(blnFollowMouse)
    {
        JComponent src = (JComponent)evt.getSource();
        Point ptMouseDragLoc = src.getLocationOnScreen();
        ptMouseDragLoc.translate(evt.getX(), evt.getY());
        Point ptFormLoc = this.getLocationOnScreen();
        int newHeight = ptMouseDragLoc.y - ptFormLoc.y;
        
        Dimension dimRulerSize = this.getSize();
        
        dimRulerSize.height = newHeight;
        this.setSize(dimRulerSize);
    }
}//GEN-LAST:event_pnlResizeMouseDragged

private void pnlResizeMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlResizeMousePressed
    this.blnFollowMouse = true;
}//GEN-LAST:event_pnlResizeMousePressed

private void pnlResizeMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlResizeMouseReleased
    this.blnFollowMouse = false;
}//GEN-LAST:event_pnlResizeMouseReleased

private void pnlRulerContainerMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlRulerContainerMouseDragged
    if(blnFollowMouse)
    {
        JComponent src = (JComponent)evt.getSource();
        Point ptCurrentCursorPos = src.getLocationOnScreen();
        ptCurrentCursorPos.translate(evt.getX(), evt.getY());
        Point ptRulerPos = this.getLocationOnScreen();
        
        ptRulerPos.translate(ptCurrentCursorPos.x - ptLastCursorPos.x, ptCurrentCursorPos.y - ptLastCursorPos.y);
        this.setLocation(ptRulerPos);
        ptLastCursorPos = (Point) ptCurrentCursorPos.clone();
    }
}//GEN-LAST:event_pnlRulerContainerMouseDragged

private void pnlRulerContainerMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlRulerContainerMousePressed
    JComponent src = (JComponent)evt.getSource();
    ptLastCursorPos = src.getLocationOnScreen();
    ptLastCursorPos.translate(evt.getX(), evt.getY());
    this.blnFollowMouse = true;
}//GEN-LAST:event_pnlRulerContainerMousePressed

private void pnlRulerContainerMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlRulerContainerMouseReleased
    this.blnFollowMouse = false;
}//GEN-LAST:event_pnlRulerContainerMouseReleased

private void pnlRulerContainerMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pnlRulerContainerMouseMoved
    this.lblDistance.setText(Integer.toString(evt.getY()));
}//GEN-LAST:event_pnlRulerContainerMouseMoved

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnClose;
    private javax.swing.JButton btnFlip;
    private javax.swing.JButton btnMin;
    private javax.swing.JLabel lblDistance;
    private javax.swing.JLabel lblHandle;
    private javax.swing.JLabel lblTitle;
    private javax.swing.JMenuBar mbHotKeys;
    private javax.swing.JMenu mnuHotKeys;
    private javax.swing.JMenuItem mtmAbout;
    private javax.swing.JMenuItem mtmColor;
    private javax.swing.JMenuItem mtmFlip;
    private javax.swing.JMenuItem mtmHKAbout;
    private javax.swing.JMenuItem mtmHKColor;
    private javax.swing.JMenuItem mtmHKDown;
    private javax.swing.JMenuItem mtmHKFlip;
    private javax.swing.JMenuItem mtmHKHelp;
    private javax.swing.JMenuItem mtmHKLeft;
    private javax.swing.JMenuItem mtmHKMinimize;
    private javax.swing.JMenuItem mtmHKQuit;
    private javax.swing.JMenuItem mtmHKRight;
    private javax.swing.JMenuItem mtmHKSnap;
    private javax.swing.JMenuItem mtmHKUp;
    private javax.swing.JMenuItem mtmHelp;
    private javax.swing.JMenuItem mtmMinimize;
    private javax.swing.JMenuItem mtmQuit;
    private javax.swing.JSeparator mtmSeparator;
    private javax.swing.JSeparator mtmSeparator2;
    private javax.swing.JMenuItem mtmSnap;
    private javax.swing.JPanel pnlButtons;
    private javax.swing.JPanel pnlCenterContainer;
    private javax.swing.JPanel pnlDistance;
    private javax.swing.JPanel pnlFormControls;
    private javax.swing.JPanel pnlInfoBar;
    private javax.swing.JPanel pnlInnerContainer;
    private javax.swing.JPanel pnlPadding;
    private javax.swing.JPanel pnlResize;
    private javax.swing.JPanel pnlRulerContainer;
    private javax.swing.JPanel pnlTickBar;
    private javax.swing.JPanel pnlTitle;
    private javax.swing.JPopupMenu popContextMenu;
    private openrule.VerticalTickBar tickbar;
    // End of variables declaration//GEN-END:variables
    private Point ptLastCursorPos;
    private boolean blnFollowMouse = true;
}
